package com.tian.mapper;

import com.tian.dto.ChargeRecordListReqDto;
import com.tian.entity.ChargeRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface ChargeRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ChargeRecord record);

    ChargeRecord selectByPrimaryKey(Long id);

    List<ChargeRecord> selectAll();
    List<ChargeRecord> page(ChargeRecordListReqDto chargeRecordListReqDto);
    int count(ChargeRecordListReqDto chargeRecordListReqDto);

    int updateByPrimaryKey(ChargeRecord record);
}